package me.firstapp.weixin.utils;

import com.foxinmy.weixin4j.mp.WeixinProxy;
import com.foxinmy.weixin4j.mp.api.OauthApi;
import com.foxinmy.weixin4j.payment.WeixinPayProxy;

/**
 * @ClassName: WchatConfig
 * @Description: 微信配置
 * @date 2016年8月8日 下午12:05:59
 * 
 */
public class WchatConfig {

	private OauthApi oauthApi;
	private WeixinPayProxy weixinPayProxy;
	private WeixinProxy weixinProxy;

	private static WchatConfig wchatConfig;

	public static WchatConfig getInstance() {
		if (null == wchatConfig) {
			wchatConfig = new WchatConfig();
		}
		return wchatConfig;
	}

	private WchatConfig() {
		oauthApi = new OauthApi();
		weixinPayProxy = new WeixinPayProxy();
		weixinProxy = new WeixinProxy();
	}

	public OauthApi getOauthApi() {
		return oauthApi;
	}

	public void setOauthApi(OauthApi oauthApi) {
		this.oauthApi = oauthApi;
	}

	public WeixinPayProxy getWeixinPayProxy() {
		return weixinPayProxy;
	}

	public void setWeixinPayProxy(WeixinPayProxy weixinPayProxy) {
		this.weixinPayProxy = weixinPayProxy;
	}

	public WeixinProxy getWeixinProxy() {
		return weixinProxy;
	}

	public void setWeixinProxy(WeixinProxy weixinProxy) {
		this.weixinProxy = weixinProxy;
	}

}
